package com.leixiaoqiao.service;


import com.github.pagehelper.PageInfo;
import com.leixiaoqiao.pojo.Book;

import java.util.List;

public interface BookService {

    List<Book> getBooks();

    PageInfo<Book> getPageBook(Integer pageNum, Integer pageSize);

    Book getBook(Integer id);

    Boolean addBook(Book book);

    Boolean updateBook(Book book);

    Boolean deleteBook(int id);

    PageInfo<Book> page(Integer pageNum, Integer pageSize);
}

